<div>
    <div class="row" v-if="govRoomManageInfo.componentShow == 'govRoomManage'">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>查询条件</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                            v-on:click="_moreCondition()">{{govRoomManageInfo.moreCondition == true?'隐藏':'更多'}}</button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <select class="custom-select" v-model="govRoomManageInfo.conditions.govCommunityId" @change=_listGovFloors(govRoomManageInfo.conditions.caId,govRoomManageInfo.conditions.govCommunityId)>
                                    <option selected disabled value="">请选择所属小区</option>
                                    <option v-for="(item,index) in govRoomManageInfo.govCommunitys" :value="item.govCommunityId">
                                        {{item.communityName}}</option>
                                    </select>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <select class="custom-select" v-model="govRoomManageInfo.conditions.govFloorId">
                                    <option selected disabled value="">必填，请选择建筑物</option>
                                    <option v-for="(item,index) in govRoomManageInfo.govFloors" :value="item.govFloorId">
                                        {{item.floorName}}</option>
                                    </select>
                            </div>
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryGovRoomMethod()">
                                <i class="glyphicon glyphicon-search"></i> 查询
                            </button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4" v-if="govRoomManageInfo.moreCondition == true">
                            <div class="form-group">
                                <input type="text" placeholder="请输入房屋编号" v-model="govRoomManageInfo.conditions.roomNum"
                                    class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-4" v-if="govRoomManageInfo.moreCondition == true">
                            <select class="custom-select" v-model="govRoomManageInfo.conditions.roomType">
                                <option selected value="">请选择房屋类型</option>
                                <option value="3306">居住房屋</option>
                                <option value="3307">出租房屋</option>
                            </select>
                        </div>
                        <div class="col-sm-3" v-if="govRoomManageInfo.moreCondition == true">
                            <select class="custom-select" v-model="govRoomManageInfo.conditions.roomRight">
                                <option selected value="">请选择房屋产权</option>
                                <option value="1001">大产权</option>
                                <option value="2002">小产权</option>
                            </select>
                        </div>
                        <div class="col-sm-1">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4" v-if="govRoomManageInfo.moreCondition == true">
                            <div class="form-group">
                                <input type="text" placeholder="请输入房主" v-model="govRoomManageInfo.conditions.ownerName"
                                    class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-4" v-if="govRoomManageInfo.moreCondition == true">
                            <div class="form-group">
                                <input type="text" placeholder="请输入房主电话" v-model="govRoomManageInfo.conditions.ownerTel"
                                    class=" form-control">
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
    <div class="row" v-if="govRoomManageInfo.componentShow == 'govRoomManage'">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>房屋信息</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddGovRoomModal()">
                            <i class="glyphicon glyphicon-plus"></i>
                            添加
                        </button>
                    </div>
                </div>
                <div class="ibox-content">

                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">所属建筑物</th>
                                <th class="text-center">房屋编号</th>
                                <th class="text-center">房屋产权</th>
                                <th class="text-center">房主</th>
                                <th class="text-center">是否常住</th>
                                <th class="text-center">是否落户</th>
                                <th class="text-center">数据来源</th>
                                <th class="text-center">操作</th>


                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="govRoom in govRoomManageInfo.govRooms">
                                <td class="text-center">{{govRoom.floorName}}</td>
                                <td class="text-center">{{govRoom.roomNum}}</td>
                                <td class="text-center">{{govRoom.roomRight == '1001'?'大产权':'小产权'}}</td>
                                <td class="text-center">{{govRoom.ownerName == '9999'?'无':govRoom.ownerName}}</td>
                                <td class="text-center">{{govRoom.isConservati == 'Y'?'是':'否'}}</td>
                                <td class="text-center">{{govRoom.isSettle == 'Y'?'是':'否'}}</td>
                                <td class="text-center">{{govRoom.datasourceType == '999999'?'政务系统':'物业系统'}}</td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openEditGovRoomModel(govRoom)">修改</button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeleteGovRoomModel(govRoom)">删除</button>
                                    </div>
                                </td>

                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>


    <div v-bind:class="{no_display:govRoomManageInfo.componentShow != 'addGovRoom'}">
        <vc:create path="gov/addGovRoom" callBackListener="" callBackFunction=""></vc:create>
    </div>
    <div v-bind:class="{no_display:govRoomManageInfo.componentShow != 'editGovRoom'}">
        <vc:create path="gov/editGovRoom" callBackListener="" callBackFunction=""></vc:create>
    </div>
    <vc:create path="gov/deleteGovRoom"></vc:create>
    <vc:create path="gov/chooseGovOwner" emitChooseGovOwner="openChooseGovOwner" emitLoadData="openChooseGovOwner" ></vc:create>

</div>